export class A {
  public bar() {
    console.info('bar');
  }

  public bar() {
    console.info('bar');
  }
}

export class B {
  private readonly name: string = 'bar';

  public get bar() {
    return this.name;
  }

  public bar() {
    return this.name;
  }
}

export class E {
  public static bar() {
    console.info('static bar');
  }

  public static bar() {
    console.info('static bar');
  }
}

//github
class A {
  foo() {}
  foo() {}
}

class A {
  'foo'() {}
  'foo'() {}
}

class A {
  10() {}
  1e1() {}  // 未报错
}

class A {
  foo() {}
  foo() {}
  foo() {}
}

class A {
  static foo() {}
  static foo() {}
}

class A {
  foo() {}
  get foo() {}
}

class A {
  set foo(value) {}
  foo() {}    // 未报错
}

class A {
  foo;
  foo = 42;
}

class A {
  foo;
  foo() {}  // 未报错
}